package dao;

import model.Address;
import utils.GenicaDao;

import java.util.List;

/**
 * @Description:
 * @Author one world
 * @Date 2020/9/23 0023 10:37
 */
public interface AddressDao extends GenicaDao<Address,Integer> {
    /**
     * 根据用户ID查找地址
     * @param id
     * @return List<Address>
     */
    public List<Address> findByUserId(int id);

    /**
     * 通过订单编号查找地址
     * @param order_no
     * @return Address
     */
    public Address findByOrderNo(String order_no);
}
